﻿ @*
 * ---------------------------------------------------
 * 作者: MTQ 
 * 日期： 2021/5/6 12:46:24 
 * ---------------------------------------------------
 *@
   @model MTQ.Model.Group_HostInfo    
   @using MTQ.BLL 
    
    @{                                         
        Layout = "~/Views/Shared/_Layout_lay_admin.cshtml";                                      
     }                                        
                                             
                                             
                                             
    <style>                                         
         body {                                     
            background-color: #ffffff;                                  
         }                                    
     </style>                                        
                                             
    <div class="layui-form layuimini-form">                                         
                                      
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label  hidden "  formeld_key="H_ID" txt='H_ID' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_ID" placeholder=""  value="@Model.H_ID" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_Name_CN" txt='H_Name_CN' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_Name_CN" placeholder=""  value="@Model.H_Name_CN" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_Name_EN" txt='H_Name_EN' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_Name_EN" placeholder=""  value="@Model.H_Name_EN" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_IISURL_PC" txt='H_IISURL_PC' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_IISURL_PC" placeholder=""  value="@Model.H_IISURL_PC" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_IISURL_API" txt='H_IISURL_API' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_IISURL_API" placeholder=""  value="@Model.H_IISURL_API" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_IISURL_M" txt='H_IISURL_M' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_IISURL_M" placeholder=""  value="@Model.H_IISURL_M" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_ServerIP" txt='H_ServerIP' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_ServerIP" placeholder=""  value="@Model.H_ServerIP" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_ServerPort" txt='H_ServerPort' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_ServerPort" placeholder=""  value="@Model.H_ServerPort" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_DatabaseUser" txt='H_DatabaseUser' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_DatabaseUser" placeholder=""  value="@Model.H_DatabaseUser" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_DatabasePassword" txt='H_DatabasePassword' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_DatabasePassword" placeholder=""  value="@Model.H_DatabasePassword" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_DatabaseName" txt='H_DatabaseName' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_DatabaseName" placeholder=""  value="@Model.H_DatabaseName" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
      <div class="layui-form-item">                                       
             <label class="layui-form-label "  formeld_key="H_Remark" txt='H_Remark' ></label>                                  
             <div class="layui-input-block">                                
                <input type="text" name="H_Remark" placeholder=""  value="@Model.H_Remark" autocomplete="off" class="layui-input">                             
               </div>                               
       </div>                                       
                                             
                                             
                                             
                                             
                                             
                                             
                                             
      <div class="layui-form-item">                                        
            <div class="layui-input-block">                                 
                  <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>                            
              </div>                                
       </div>                                       
                                             
     </div>                                        
                                             
                                             
                                             
      <script>                                                     
          layui.use(['form'], function () {                        
              var form = layui.form,                               
                  layer = layui.layer,                             
                  $ = layui.$;                                     
                                                                   
              //监听提交                                           
              form.on('submit(saveBtn)', function (data) {         
                                                                   
                  $.ajax({                                         
                      url: '/Group_HostInfo/Edit',                       
                      type: 'post',                                
                      dataType: 'text',                            
                      data: data.field,                            
                      success: function (resp) {                   
                          var json = eval('(' + resp + ')');       
                          var index = layer.alert(json.Message, function () {      
                              // 关闭弹出层      
                              layer.close(index);      
                              parent.reloadTable();      
                              var iframeIndex = parent.layer.getFrameIndex(window.name);      
                              parent.layer.close(iframeIndex);       
                          });                                        
                          //layer.alert(json.Message);               
                          //reloadTable();                           
                      },                                             
                      error: function (resp) {                       
                          layer.alert("对不起出错了");             
                      }                                              
                  });                                                
                                                                     
                                                                     
                  return false;                                      
              });                                                    
          showFormelDtxt(group_hostinfo_entity);                             
           });                                                       
      </script>                                                      
                                             
                                             
                                             
                                             
                                             
                                             
                                             

